<?php
/**
 * Created by PhpStorm.
 * User: huutuit
 * Date: 3/5/2015
 * Time: 3:45 PM
 */

class LanguageSelector extends CWidget{
	public function run()
	{
		$currentLang = Yii::app()->language;
		$languages = Yii::app()->params->languages;
		$this->render('languageSelector', array('currentLang' => $currentLang, 'languages'=>$languages));
	}
} 